package com.hungry.hfw.service;

import java.util.ArrayList;
import java.util.List;

import com.hungry.hfw.dao.CustomQuery;
import com.hungry.hfw.dao.SimpleCoreDao;
import com.hungry.web.test.User;

public class TestService  {

	private SimpleCoreDao dao;
	

	public void 
() throws Throwable {

		
		
		User u = new User();
		u.setActiveInd(1l);
		u.setEmail("shukad333@gmail.com");
		u.setFirstName("shu");
		u.setLastName("kad");
		u.setUserName("shukad");
		dao.insert(u);
		CustomQuery cq = new CustomQuery();
		cq.setQueryName("deleteUser");
		List<Object> wh = new ArrayList<Object>();
//		wh.add(1);
		wh.add("shukad");
		cq.setWhereList(wh);
		int i = dao.deleteEntity(new User(),cq);
		System.out.println( "size - " + i);
	}


	public void setDao(SimpleCoreDao dao) {
		this.dao = dao;
	}


	public SimpleCoreDao getDao() {
		return dao;
	}
	
	
	
}
